package org.example.bighomework.Teacher;

import org.example.bighomework.Student.Student;
import org.springframework.data.domain.Page;

import java.util.List;

//业务层，接口
public interface TeacherService {
    //获取所有信息
    List<Teacher> getAllTeacher();
    //保存信息/更新信息
    void saveTeacher(Teacher teacher);
    //根据id查找
    Teacher getTeacherById(String id);
    //删除
    void deleteTeacherById(String id);
    //根据name查找
    List<Teacher> findByName(String name);
    //保存信息/更新信息
    void updateTeacher(Teacher teacher);
    //分页
    Page<Teacher> findPaginated(int pageNo, int pageSize, String sortField, String sortDirection);
}

